package com.ethanzzh.ethanzzh_xdclass.model.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import javax.persistence.*;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Table(name = "video_order")
public class VideoOrder {
    @Id
    private Integer id;

    /**
     * 用户标示
     */
    private String openid;

    /**
     * 订单唯一标识
     */
    @Column(name = "out_trade_no")
    private String outTradeNo;

    /**
     * 0表示未支付，1表示已支付
     */
    private Integer state;

    /**
     * 订单生成时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 支付回调时间
     */
    @Column(name = "notify_time")
    private Date notifyTime;

    /**
     * 支付金额，单位分
     */
    @Column(name = "total_fee")
    private Integer totalFee;

    /**
     * 微信昵称
     */
    private String nickname;

    /**
     * 微信头像
     */
    @Column(name = "head_img")
    private String headImg;

    /**
     * 视频主键
     */
    @Column(name = "video_id")
    private Integer videoId;

    /**
     * 视频名称
     */
    @Column(name = "video_title")
    private String videoTitle;

    /**
     * 视频图片
     */
    @Column(name = "video_img")
    private String videoImg;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    private Integer userId;

    /**
     * 用户ip地址
     */
    private String ip;

    /**
     * 0表示未删除，1表示已经删除
     */
    private Integer del;


    public String getOutTradeNo() {
        return outTradeNo;
    }
}